Component({
  properties: {
    show: {
      type: Boolean,
      value: false
    },
    title: {
      type: String,
      value: '错误提示'
    },
    message: {
      type: String,
      value: ''
    }
  },

  methods: {
    onClose() {
      this.triggerEvent('close')
    },

    onMaskTap() {
      // 点击遮罩层也可以关闭弹窗
      this.triggerEvent('close')
    }
  }
})